﻿namespace Elasticsearch.Configuration
{
    public class ElasticsearchConfig
    {
        /// <summary>
        /// Elasticsearch服务器地址
        /// </summary>
        public List<string> Nodes { get; set; } = new List<string> { "http://20.255.99.182:9200" };

        /// <summary>
        /// 用户名（可选）
        /// </summary>
        public string? Username { get; set; }

        /// <summary>
        /// 密码（可选）
        /// </summary>
        public string? Password { get; set; }

        /// <summary>
        /// 默认索引名称
        /// </summary>
        public string DefaultIndex { get; set; } = "users";

        /// <summary>
        /// 连接超时时间（秒）
        /// </summary>
        public int RequestTimeoutSeconds { get; set; } = 30;

        /// <summary>
        /// 是否启用调试模式
        /// </summary>
        public bool EnableDebug { get; set; } = false;
    }
}
